Character AddHatchPatternOffsetFilling

Adds an Offset filling type pattern to the character

public void AddHatchPatternOffsetFilling(float offsetGap, HatchOffsetStyle style, HatchOffsetAlgorithm algorithm, HatchCornerStyle cornerStyle, int repeatCount)

 

Return value

void  

 

Parameters

float offsetGap The gap between each offset hatch
HatchOffsetStyle style Set the offset hatch style
HatchOffsetAlgorithm algorithm Set the ofsset hatching algorithm
HatchCornerStyle cornerStyle Set the corner style
int repeatCount Set the repeat count

 

Example

Copy
TextShape text = new TextShape();

Character character = new Character();
character.CharacterUnicode = 'A';
character.Height = 10;
character.FontName = "Arial";
character.FontStyle = FontStyle.Regular;

character.AddHatchPatternOffsetFilling(0.2f, HatchOffsetStyle.InwardToOut, HatchOffsetAlgorithm.DirectOffset, HatchCornerStyle.Sharp, 1);

text.Characters.Add(character);